﻿using System;
using System.Collections;
using System.Web.UI;

namespace Pap.Web.Modules.Loan.Views
{
    /// <summary>
    /// 
    /// </summary>
    public partial class PrintCreateBoard : System.Web.UI.Page
    {
        /// <summary>
        /// Gets the board members print.
        /// </summary>
        private IEnumerable boardMembersPrint
        {
            get { return Session["boardMembersPrint"] as IEnumerable; }
        }

        /// <summary>
        /// Gets the boardloans print.
        /// </summary>
        private IEnumerable boardloansPrint
        {
            get { return Session["boardloansPrint"] as IEnumerable; }
        }

        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (boardMembersPrint != null)
                {
                    grvBoardUsers.DataSource = boardMembersPrint;
                    grvBoardUsers.DataBind();
                }
                if (boardloansPrint != null)
                {
                    grvBoardLoans.DataSource = boardloansPrint;
                    grvBoardLoans.DataBind();
                }
            }
        }
    }
}
